<template>
  <div>
    <h1>{{ msg }}</h1>
    <h1>{{ props.islogin ? "已登录" : "未登录" }}</h1>
    <li v-for="(item,index) in props.list" :key="index">{{item}}</li>
  </div>
</template>

<script setup>
import { ref, defineProps } from "vue";
let msg = ref(0);
const props = defineProps({
  islogin: Boolean,
  list:Array
});
</script>
